// 2. reducer/index.js中 合并reducer

import { combineReducers } from 'redux';
import todoReducer from './todo';
import userReducer from './user';

// 🔔使用combineReducers合并reducer， 键名代表模块名
const rootReducer = combineReducers({
  todo: todoReducer,
  user: userReducer,
});

export default rootReducer;
